package com.kejizhentan.springboot2thymeleaf.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 自定义基础表不让访问异常
 */
@ResponseStatus(value = HttpStatus.FORBIDDEN,reason = "基础表页面不让人访问")//参数value为错误状态码，reason为错误原因
public class BasicTableNoVisitException extends RuntimeException{
    public BasicTableNoVisitException() {
    }

    public BasicTableNoVisitException(String message){
        super(message);
    }
}
